package com.bamboo.core.domain.query;

import java.util.List;

/**
* @description 分页查询的通用参数
* @date 2025/3/7 8:45
* @author chenzh
*/
public class Page {
    private int page = 1;
    private int size = 10;
    /**
     * 排序字段
     */
    private List<Order> orders;

    public static class Order {
        private String column;
        private boolean asc = true;

        public String getColumn() {
            return column;
        }

        public void setColumn(String column) {
            this.column = column;
        }

        public boolean isAsc() {
            return asc;
        }

        public void setAsc(boolean asc) {
            this.asc = asc;
        }
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public List<Order> getOrders() {
        return orders;
    }

    public void setOrders(List<Order> orders) {
        this.orders = orders;
    }
}
